const fastify = require("fastify")();
fastify.register(require("fastify-jwt"), {
  secret: "supersecret",
});

async function routes(fastify, options) {
  fastify.post("/signup", (req, reply) => {
    // some code
    const token = fastify.jwt.sign({ payload });
    reply.send({ token });
  });
}

module.exports = routes;
